import request from '@/utils/request'

// 线路列表
export function douyinVideoTalentWorksList(params) {
    return request({
      url: '/douyin/video/talent/works/list',
      method: 'get',
      params
    })
  }
//  添加线路
export function douyinVideoTalentWorksAdd(data) {
    return request({
      url: '/douyin/video/talent/works',
      method: 'post',
      data
    })
}
//  编辑线路
export function douyinVideoTalentWorksEdit(data) {
    return request({
      url: '/douyin/video/talent/works',
      method: 'put',
      data
    })
}
//  查询地区名称
export function douyinVideoTalentWorksAreaName(code) {
    return request({
      url: `/douyin/video/talent/works/area/name/${code}`,
      method: 'get',
    })
}
//  绑定推广任务id
export function douyinVideoTalentWorksBindTaskId(data) {
    return request({
      url: '/douyin/video/talent/works/bind/task/id',
      method: 'put',
      data
    })
}
// 查询线路详情
export function douyinVideoTalentWorksDetail(id) {
    return request({
      url: `/douyin/video/talent/works/detail/${id}`,
      method: 'get',
    })
}
// 上下架线路
export function douyinVideoTalentWorksUpDowm(data) {
    return request({
      url: '/douyin/video/talent/works/up/down',
      method: 'put',
      data
    })
}
// 删除线路
export function douyinVideoTalentWorksDelete(id) {
    return request({
      url: `/douyin/video/talent/works/${id}`,
      method: 'DELETE',
    })
}